﻿// This software is the confidential and proprietary information of NetBay.
// Such confidential information should not be disclosed.
// NetBay copyright(c) 2012

#region

using System;
using NetBay.Core.BusinessEntities.Workflow;

#endregion

namespace Rio.Workflow.Runtime.Events
{
    public delegate void WorkflowEventHandler(object sender, WorkflowEventArgs args);

    public class WorkflowEventArgs : EventArgs
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="WorkflowEventArgs" /> class.
        /// </summary>
        /// <param name="instance">The instance.</param>
        internal WorkflowEventArgs(WorkflowInstance instance)
        {
            Instance = instance;
        }

        #endregion

        #region Instance Properties

        /// <summary>
        /// Gets the instance.
        /// </summary>
        /// <value>The instance.</value>
        public WorkflowInstance Instance { get; private set; }

        #endregion
    }
}